import request from '@/utils/request'

// 查询进食记录列表
export function listEat(query) {
  return request({
    url: '/manage/eat/list',
    method: 'get',
    params: query
  })
}

// 查询进食记录详细
export function getEat(eatId) {
  return request({
    url: '/manage/eat/' + eatId,
    method: 'get'
  })
}

// 新增进食记录
export function addEat(data) {
  return request({
    url: '/manage/eat',
    method: 'post',
    data: data
  })
}

// 修改进食记录
export function updateEat(data) {
  return request({
    url: '/manage/eat',
    method: 'put',
    data: data
  })
}

// 删除进食记录
export function delEat(eatId) {
  return request({
    url: '/manage/eat/' + eatId,
    method: 'delete'
  })
}
